<?php
function showComments($commentList)
{
if(!$commentList) 
	{echo "<th>there are no comments available</th>";}
else 
{
	echo "<table width='500' border='2' cellspacing='0' cellpadding='0'  bgcolor='#CCFFCC'>
		  <td align='center'> Username</td><td align='center'>Comment</td>";
	
	while($comment = mysql_fetch_array($commentList))
	{	
		echo "<tr align='center'>";
		//if(isset($comment["username"]))
		echo "<td width='100' valign='top'>" .$comment["username"]. "</td>";
		//if(isset($comment["comment_text"]))
		echo "<td align='left'>" .$comment["comment_text"]. "</td>";
		echo "</tr>";
	}
}
}
?>